//
//  CompanyModel.m
//  AddressBook
//
//  Created by ladystyle100 on 2017/8/31.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "CompanyModel.h"
#import "NSObject+XQArchiverData.h"

@implementation CompanyModel

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        [self decoder:aDecoder];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [self encoder:aCoder];
}

+ (instancetype)modelWithDic:(NSDictionary *)dic {
    if (!dic) {
        return nil;
    }
    
    CompanyModel *model = [CompanyModel new];
    [model setValuesForKeysWithDictionary:dic];
    
    model.info = [DepartmentModel modelArrWithInfo:dic[@"info"] section:dic[@"section"]];
    
    return model;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

@end
















